import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const base = `${process.env.BASE_URL}` + 'news'

export default new Router({
  mode: 'history',
  base,
  routes: [
    {
      path: '/',
      component: () => import('@/pages/news/views/home')
    },
    {
      path: '/newsdetail/:id',
      component: () => import('@/pages/news/views/detail')
    }
  ]
})
